<?php 
defined('RUN_KATANA') or die('Restricted access');
if($com->Id > 0):
require_once('controller.php');
require_once('components/common/com_top.php');
$error = $com->getFormError();
$info = $com->getFormInfo();
?>
<?php if($view == 'new_user'): ?>
<div class="row">
	<div class="col-md-6">
		<h3><?php echo ucfirst($txt->getWord('login'));  ?></h3>
		<?php include($com->getFolderPath().'forms/login.php'); ?>
	</div>
	<div class="col-md-6">
		<h3><?php echo ucfirst($txt->getWord('new_user'));  ?></h3>
		<?php 
			if($ac->getSetting('new-user-quick'))
			{ include($com->getFolderPath().'forms/new_user_quick.php'); }
			else
			{ include($com->getFolderPath().'forms/new_user.php'); }
		?>
	</div>
</div>
<?php 
$class = 'collapse';
if($_REQUEST['username_email'])
{ $class = 'collapse in'; }
?>
<div id="forgotPassComForm" class=" <?php echo $class; ?> "><br />
	<h3><?php echo ucfirst($txt->getWord('forgot_password')); ?></h3>
	<form action="<?php echo $ac->getSetting('login-action'); ?>" method="post" enctype="multipart/form-data">
		<div class="form-group">
			<?php if($ac->getSetting('email-username') == 0): ?>
				<label for="username_email"><?php echo ucfirst($txt->getWord('type_in').' '.$txt->getWord('username')); ?></label>
				<input class="text form-control" required name="username_email" type="text" value="<?php echo $_REQUEST['username_email']; ?>" maxlength="100" />					
			<?php else:  ?>
				<label for="username_email"><?php echo ucfirst($txt->getWord('type_in').' '.$txt->getWord('e-mail')); ?></label>
				<input class="text form-control" required name="username_email" type="email" value="<?php echo $_REQUEST['username_email']; ?>" maxlength="100" />					
			<?php endif;  ?>
			<?php 
				if($user->Error['username_email'])
				{ echo '<br /><span class="error">'.ucfirst($user->Error['username_email']).'</span>'; }
				if($user->Info['username_email'])
				{ echo '<p class="help-block">'.ucfirst($user->Info['username_email']).'</p>'; }
			?>
		</div>
		<input type="hidden" name="action" value="reset_password" />
		<button class="btn btn-warning btn-large input-large btn-block" type="submit" name="submit"><?php echo ucfirst($txt->getWord('send')); ?> <i class="<?php echo $theme->getIconSetPrefix(); ?>-mail-forward"></i></button><br />
	</form>
</div>
<div class="clearfix"></div>
<?php endif; ?>
<?php if($view == 'customer'): ?>
<div>
	<?php include($com->getFolderPath().'forms/customer.php'); ?>
</div>
<?php endif; ?>
<?php require_once('components/common/com_bot.php');  ?>
<?php endif; ?>
